'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, BOOLEAN } = app.Sequelize;

  const UserCertificate = app.model.define('user_certificate', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    user_id: INTEGER,
    identity_positive: STRING(255),
    identity_back: STRING(255),
    education_type: INTEGER,
    education_number: STRING(150),
    school: STRING(100),
    education: STRING(100),
    education_image: STRING(255),
    create_time: DATE,
    update_time: DATE,
    delete_time: DATE
  });

  return UserCertificate;
};
